namespace com.ytocargo.EntityFramework.SecondMigrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class changeCharts : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.CHART", "IS_SUP", c => c.String(maxLength: 1, fixedLength: true, unicode: false));
            AddColumn("dbo.CHART", "IS_MODIFIED", c => c.String(maxLength: 1, fixedLength: true, unicode: false));
            AlterColumn("dbo.CHART", "MD5", c => c.String(maxLength: 50));
            AlterColumn("dbo.CHART", "AD_HP_ID", c => c.String(maxLength: 50));
            AlterColumn("dbo.CHART", "PAGE_NUMBER", c => c.String(maxLength: 10));
            AlterColumn("dbo.CHART", "SUP_REF_CHARTID", c => c.String(maxLength: 50));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.CHART", "SUP_REF_CHARTID", c => c.String());
            AlterColumn("dbo.CHART", "PAGE_NUMBER", c => c.String());
            AlterColumn("dbo.CHART", "AD_HP_ID", c => c.String());
            AlterColumn("dbo.CHART", "MD5", c => c.String());
            DropColumn("dbo.CHART", "IS_MODIFIED");
            DropColumn("dbo.CHART", "IS_SUP");
        }
    }
}
